package com.ztgf.shopping.models.service.epg;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.ztgf.common.constant.Result;
import com.ztgf.shopping.models.bo.epg.EpgHotWordBO;
import com.ztgf.shopping.models.bo.epg.EpgHotWordSaveBO;
import com.ztgf.shopping.models.dto.epg.EpgHotWordDTO;

import java.util.List;

/**
 * author: chenyu.wang
 * date: 2020-05-18 11:16
 * Description: 热词表服务
 */
public interface IEpgHotWordService extends IService<EpgHotWordDTO> {
    void updateHotWordOnceByName(String name);
    /**
     * description: 添加保存热词
     * param: [hotWordDTO]
     * author: chenyu.wang
     * date: 2020-05-18
     * return: boolean
     */
    Result add(EpgHotWordSaveBO hotWordSaveBO);

    List<EpgHotWordDTO> getBySelectHotInfoNoPage(EpgHotWordBO epgHotWordBO);

    Page<EpgHotWordDTO> getBySelectHotInfoPage(EpgHotWordBO epgHotWordBO);

    EpgHotWordDTO getByName(String hotWordName);

}
